package com.izhar.answeringmachine.mapper;

import com.izhar.answeringmachine.Entity.Sample;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface SampleMapper {


    /**
     * 根据id查询
     * @param id    id
     * @return  question
     */
    Sample selectById(String id);


    /**
     * 根据题目id获取示例输入输出，
     * @param questionId    题目id
     * @return  sample
     */
    List<Sample> selectByQuestionId(String questionId);
}
